<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>编辑菜单</title>

    <%-- 静态包含 base标签、css样式、jQuery文件 --%>

    <link rel="stylesheet" href="../../../static/bootstrap/css/bootstrap-iso.css" />
    <link rel="stylesheet" href="../../../static/css/foot123.css">
    <link rel="stylesheet" href="../../../static/css/menu_edit.css">
    <link rel="stylesheet" href="../../../static/css/top123.css">

    <style type="text/css">
        h1 {
            text-align: center;
            margin-top: 200px;
        }

        h1 a {
            color:red;
        }

        input {
            text-align: center;
        }
    </style>
</head>
<body>
<section>
    <div id="header">
        <img class="logo_img" alt="" src="../../static/img/logo.gif" >
        <span class="wel_word">编辑图书</span>

        <%-- 静态包含 manager管理模块的菜单  --%>
        <%@include file="../common/manager_menu.jsp"%>


    </div>

    <div id="main">
        <div class="bootstrap-iso">
            <div class="row" style="background-color: #fff;overflow: auto;margin-bottom: 5px;margin-top: 20%;"
                 id="table123">
                <div class="col-md-12">
                    <div class="table-responsive">
                        <form action="${pageContext.request.contextPath}/manager123/updatemenu" method="post">
                            <input type="hidden" name="id" value="${ requestScope.menu.id }" />
                            <table class="table table-hover table-striped table-bordered" data-toggle="table">

                                <tr>
                                    <td>名称</td>
                                    <td>价格</td>
                                    <td>类型</td>
                                    <td>销量</td>
                                    <td>库存</td>
                                    <td colspan="2">操作</td>
                                </tr>
                                <tr>
                                    <td><input name="name" type="text" value="${requestScope.menu.name}"/></td>
                                    <td><input name="price" type="text" value="${requestScope.menu.price}"/></td>
                                    <td><input name="type" type="text" value="${requestScope.menu.type}"/></td>
                                    <td><input name="sales" type="text" value="${requestScope.menu.sales}"/></td>
                                    <td><input name="stock" type="text" value="${requestScope.menu.stock}"/></td>
                                    <td><input type="submit" value="提交"/></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


</body>
</html>